package behavioral.strategy;

public class ImageStorage {
    private final Compressor compressor;

//    private Filter filter;

    public ImageStorage(Compressor compressor) {
        this.compressor = compressor;
//        this.filter = filter;
    }

    public void store(String fileName) {
        compressor.compress(fileName);
//        filter.apply(fileName);
    }

    public void store(String fileName, Compressor compressor) {
        compressor.compress(fileName);
    }
}
